
global.imports = global.imports || {}
global.imports.fs =  require('fs')
global.imports.path = require('path')
require('./temp/low')



const LowPackage = global.low

var LowSync = LowPackage.LowSync
var JSONFileSync = LowPackage.JSONFileSync


const db = new LowSync(new JSONFileSync('temp/dbSync.json'))




//important

db.read()
db.data =db.data || { posts : []}

db.data.posts.push({ 'hello' : db.data.posts.length})
// Save to file
// db.write()

db.write()
